#ifndef MAINWINDOW
#define MAINWINDOW

#include <QWidget>
#include <QStackedWidget>
#include <QButtonGroup>
#include "countdown.h"
#include "chronograph.h"

class Mainwindow : public QWidget
{
     Q_OBJECT
private:
	QStackedWidget * TimerWidget; // 显示计时器的部分
	Timer::Countdown * CountdownWidget; // 倒计时
	Timer::Chronograph * ChronographWidget; // 秒表
	QButtonGroup * btnGroup;
public:
    explicit Mainwindow(QWidget *parent = nullptr);

private slots:
	void Button_clicked(); // 点击按钮，切换窗口
	void ToCountDownWidget(); // 切换到倒计时窗口
};

#endif // MAINWINDOW
